# Contributor: Yuriy Chumak <yuriy.chumak@mail.com>
# Maintainer: Yuriy Chumak <yuriy.chumak@mail.com>
pkgname=ol
pkgver=2.4
pkgrel=0
pkgdesc="Purely functional dialect of Lisp"
url="https://yuriy-chumak.github.io/ol/"
arch="all"
license="LGPL-3.0-or-later OR MIT"
makedepends="xxd"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/yuriy-chumak/ol/archive/refs/tags/$pkgver.tar.gz
	GNUmakefile.patch
	tests-Makefile.patch
	memfd_create.patch
	"

build() {
	make HAS_SECCOMP=0
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c280da70f04637e1c822ab5a4b6eda3a1e1602b4c1fbd59731be2619fb09b0acb079841ba142f9b7b80cbf7539b1c7bd15603311b2ae4a30636f174a1ba2499b  ol-2.4.tar.gz
07db7f6bc4a0a039865bb59fa09b0a10e6d0f0d644ab846435fb5fd6fe6e84a11e8c2736ea41b81b31445a57c45f1e0d7573132dd69c1beb5e144a1ee90ac995  GNUmakefile.patch
fa5bdc23dda4139f04597e1d2f41ce99007378b457ddfd36b0ab5a1f932d5147c88b123fee6aececc7cec632eca2e54c514a097f3dffda5d156b1d57882742c7  tests-Makefile.patch
da7466825b62cc8d918de012cecee85b6c54d66c3e051bacc3210f6b2459c6ffc6325be52257baf189aed1ab73f42c1661aa6e18508e4aeef2c4d5a7faa93705  memfd_create.patch
"
